package com.powernode.constant;

/**
 * @version 1.0
 * @Date 2024/8/14 16:10
 * @Author 付~~~
 */

/**
 * 业务响应状态码枚举
 */
public enum BusinessEnum {


    OPERATION_FAIL(-1,"操作失败"),

    SERVER_INNER_FAIL(999,"服务器内部异常"),

    UN_AUTHORIZATION(401,"未授权"),

    ACCESS_DENY_FAIL(403,"权限不足，请联系管理员")
    ;
    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code; // 状态码
    private String desc;    //描述

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
